{% extends 'base.html.twig' %}

{% block body %}
    <div class="container-fluid">
        <div id="container">
            {{ form_start(form) }}
            {{ form_errors(form)}}
            {{ form_widget(form)}}
            <input type="submit" class="btn-default btn" value="创建或保存修改" />
            {{ form_end(form) }}
        </div>
    </div>
{% endblock %}

{% block stylesheets %}
    <style type="text/css">
        .required:before {
            content: "*";
            color: red;
        }
    </style>
    {% form_theme form 'jquery.collection.html.twig' %}
    {{ form_stylesheet(form) }}
{% endblock %}

{% block javascripts %}
    <script src="{{ asset('bundles/common/js/jquery.collection.js') }}"></script>
    {{ form_javascript(form) }}
    <script type="text/javascript">
        $('.collection-selector').collection();
    </script>
{% endblock %}